package com.sailorj.service.impl;

import com.sailorj.entity.SysRole;
import com.sailorj.mapper.SysRoleMapper;
import com.sailorj.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    public SysRoleMapper sysRoleMapper;

//    @Override
//    public SysLog getSysRoleById(S id) {
//        return sysRoleMapper.getRoleByName(id);
//    }

    @Override
    public SysRole getSysRoleByUsername(String name) {
        return sysRoleMapper.getRoleByUsername(name);
    }
}
